home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / cc1.sparc / local.mk < prev    next >
Makefile  |  1990-02-16  |  3KB  |  117 lines

  1. #
  2. # This file is included by Makefile.  Makefile is generated automatically
  3. # by mkmf, and this file provides additional local personalization.  The
  4. # variable SYSMAKEFILE is provdied by Makefile;  it's a system Makefile
  5. # that must be included to set up various compilation stuff.
  6. #
  7.  
  8. CFLAGS          += -O -I../cc/sprite -I../cc/dist
  9.  
  10.  
  11. #if !empty(TM:Msun2)
  12. CFLAGS          += -DTARGET_SUN2
  13.  
  14. #elif !empty(TM:Msun2)
  15. CFLAGS          += -DTARGET_SUN3
  16.  
  17. #elif !empty(TM:Msun4)
  18. CFLAGS          += -DTARGET_SUN4 -D__sparc__
  19.  
  20. #elif !empty(TM:Mspur)
  21. CFLAGS          += -DTARGET_SPUR
  22.  
  23. #endif
  24.  
  25. #
  26. # Must add to OBJS for .c files generated below, since the .c files may
  27. # not exist at the time mkmf is run to generate OBJS automatically.
  28. #
  29. OBJS        += $(TM).md/insn-emit.o $(TM).md/insn-extract.o \
  30.         $(TM).md/insn-output.o $(TM).md/insn-peep.o \
  31.         $(TM).md/insn-recog.o
  32. CLEANOBJS    += $(TM).md/insn-emit.o $(TM).md/insn-extract.o \
  33.         $(TM).md/insn-output.o $(TM).md/insn-peep.o \
  34.         $(TM).md/insn-recog.o insn-emit.c insn-extract.c \
  35.         insn-output.c insn-peep.c insn-recog.c \
  36.         $(TM).md/gencodes $(TM).md/genconfig $(TM).md/genemit \
  37.         $(TM).md/genextract $(TM).md/genflags $(TM).md/genoutput \
  38.         $(TM).md/genpeep $(TM).md/genrecog
  39.  
  40. #
  41. # Don't automatically back up Gcc stuff:  want to make sure the
  42. # backup version is VERY reliable and don't want two quick buggy
  43. # changes to result in unusable backup.
  44. #
  45. NOBACKUP    = true
  46.  
  47. #include    <$(SYSMAKEFILE)>
  48.  
  49.  
  50. #
  51. # Use headers from the main gcc area, including both stuff from
  52. # the distribution and stuff that's been modified specially for Sprite.
  53. #
  54. .PATH.h        : ../cc/sprite ../cc/dist
  55.  
  56. #
  57. # Target to make various utility programs.  Must run a separate make
  58. # to do this, because the utilities must be compiled to run on $(MACHINE),
  59. # the current machine, instead of $(TM), the machine that the new version
  60. # of the compiler will run on.
  61. #
  62. # MACHINE        ?= sun3
  63.  
  64. utils        : .MAKE .EXEC
  65.     $(MAKE) TM=$(MACHINE) -l $(PASSVARS) -f utils.mk all
  66.  
  67. #
  68. # Targets to create a bunch of source files from the machine
  69. # description.
  70. #
  71. insn-codes.h : md $(MACHINE).md/gencodes
  72.     rm -f insn-codes.h
  73.     $(MACHINE).md/gencodes md > insn-codes.h
  74.  
  75. insn-config.h : md $(MACHINE).md/genconfig
  76.     rm -f insn-config.h
  77.     $(MACHINE).md/genconfig md > insn-config.h
  78.  
  79. insn-emit.c : md $(MACHINE).md/genemit
  80.     rm -f insn-emit.c
  81.     $(MACHINE).md/genemit md > insn-emit.c
  82.  
  83. insn-extract.c : md $(MACHINE).md/genextract
  84.     rm -f insn-extract.c
  85.     $(MACHINE).md/genextract md > insn-extract.c
  86.  
  87. insn-flags.h : md $(MACHINE).md/genflags
  88.     rm -f insn-flags.h
  89.     $(MACHINE).md/genflags md > insn-flags.h
  90.  
  91. insn-output.c: md $(MACHINE).md/genoutput
  92.     rm -f insn-output.c
  93.     $(MACHINE).md/genoutput md >insn-output.c
  94.  
  95. insn-peep.c : md $(MACHINE).md/genpeep
  96.     rm -f insn-peep.c
  97.     $(MACHINE).md/genpeep md > insn-peep.c
  98.  
  99. insn-recog.c : md $(MACHINE).md/genrecog
  100.     rm -f insn-recog.c
  101.     $(MACHINE).md/genrecog md > insn-recog.c
  102.  
  103. $(MACHINE).md/gencodes $(MACHINE).md/genconfig \
  104.       $(MACHINE).md/genemit $(MACHINE).md/genextract \
  105.       $(MACHINE).md/genflags $(MACHINE).md/genoutput \
  106.       $(MACHINE).md/genpeep $(MACHINE).md/genrecog: utils
  107.  
  108. #
  109. # Must add to depend targets for above-generated .h files, since they
  110. # may not exist when make depend is run for first time.
  111. #
  112.  
  113. $(TM).md/dependencies.mk    ! insn-config.h insn-codes.h insn-flags.h
  114.  
  115. TMINSTALLDIR    = /sprite/lib/gcc/$(TM).md
  116.  
  117.